﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Common.Dtos
{
    public class TreeNodes : ITreeNode
    {
        /// <summary>
        /// 编码
        /// </summary>
        public string value { get; set; }

        /// <summary>
        /// disabled
        /// </summary>
        public bool disabled { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string label { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public string pid { get; set; }

        /// <summary>
        /// 子集
        /// </summary>
        public List<TreeNodes> options { get; set; } = new List<TreeNodes>();

        public string GetId()
        {
            return value;
        }

        public string GetPid()
        {
            return pid;
        }

        public void SetChildren(IList children)
        {
            options = (List<TreeNodes>)children;
        }
    }
}
